package graduate.wangyaqi.Models;

import graduate.wangyaqi.Enum.QuestionType;

import java.io.Serializable;

public class ExamResult implements Serializable {
    private QuestionType questionType;
    private Long id;
    private String errorMsg;
    private boolean success;
    private Object data;

    public ExamResult(String errorMsg, boolean success){
        this.errorMsg=errorMsg;
        this.success=success;
    }

    public ExamResult(QuestionType questionType, Long id, String errorMsg, boolean success, Object data){
        this.data= data;
        this.questionType=questionType;
        this.errorMsg=errorMsg;
        this.success=success;
        this.id=id;
    }

    public QuestionType getQuestionType() {
        return questionType;
    }

    public void setQuestionType(QuestionType questionType) {
        this.questionType = questionType;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
